package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @author liufeng
 */
@Data
@Accessors(chain = true)
@TableName("room_type")
@ApiModel(value = "oomType对象R", description = "oomType对象")
public class RoomType implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "任务id不能为空")
    private Integer taskId;

    @NotEmpty(message = "类型名称不能为空")
    @ApiModelProperty("名称")
    private String typeName;

    @NotEmpty(message = "学校名称不能为空")
    @ApiModelProperty("学校名称")
    private String schoolId;

    @NotEmpty(message = "学期不能为空")
    @ApiModelProperty("学期")
    private String term;

}
